package com.site.data;

/**
 * @author      zhanjun
 * @date        2010-12-7
 * @version     1.0
 * @description 
 * 
 */
public class DbContextHolder {
	 private static final ThreadLocal<Object> contextHolder = new ThreadLocal<Object>();   
     
	    public static void setDbType(Object dbType) {   
	        contextHolder.set(dbType);   
	    }   
	       
	    public static String getDbType() {   
	        return (String) contextHolder.get();  	        
	    }   
	       
	    public static void clearDbType() {   
	        contextHolder.remove();   
	    }     

}
